package Menus
{
	import flash.display.Bitmap;
	import Utils.Key;
	
	public class PauseMenu extends BaseMenu
	{			
		public function PauseMenu(game:Game, bitmap:Bitmap)
		{
			super(game, bitmap);
			this.name = "Pause";
			this.visible = false;
			this.bitmap.x = (game.TopClass.stage.stageWidth - this.bitmap.width) / 2;
			this.bitmap.y = (game.TopClass.stage.stageHeight - this.bitmap.height) / 2;
		}
		
		public override function HandleInput(keyCode:uint):void
		{
			switch(keyCode)
			{
				case Key.P:
				{
					this.Hide();
					game.UnPauseGame();
					break;
				}
			}
		}
	}
}